package com.ui.adapter;

import android.content.Context;
import android.view.View;

import com.core.sdk.ui.adapter.BaseExpandAdapter;
import com.core.sdk.ui.holder.BaseViewHolder;
import com.ui.R;
import com.ui.activity.expand.UserGroup;
import com.ui.activity.expand.UserGroupStatus;
import com.ui.activity.expand.UserInfo;
import com.ui.activity.expand.UserInfoStatus;
import com.ui.holder.TestExpandChildHolder;
import com.ui.holder.TestExpandGroupHolder;

public class TestExpandAdapter extends BaseExpandAdapter<UserGroup, UserGroupStatus,UserInfo, UserInfoStatus> {

	public TestExpandAdapter(Context context) {
		super(context);
	}

	@Override
	protected void onInitGroupViewType() {
		addGroupViewType(R.layout.item_expand_group);
	}

	@Override
	protected void onInitChildViewType() {
		addChildViewType(R.layout.item_expand_child);
	}

	@Override
	protected BaseViewHolder<UserGroup, UserGroupStatus> onCreateGroupViewHolder(View view, Context act) {
		return new TestExpandGroupHolder(view, act);
	}

	@Override
	protected BaseViewHolder<UserInfo, UserInfoStatus> onCreateChildViewHolder(View view, Context act) {
		return new TestExpandChildHolder(view, act);
	}

	@Override
	protected void onDestory() {
		
	}

}
